import fetch from '../../utils/request';

export async function getAllNodes() {
    return fetch({url: '/api/node/getAll', method: 'get'})
}

export async function deleteNode(params) {
    return fetch({url: '/api/node/delete', method: 'post', params})
}

export async function addNode(params) {
    return fetch({url: '/api/node/add', method: 'post', params})
}

export async function changeNodeAvailability(params) {
    return fetch({url: '/api/node/changeNodeAvailability', method: 'post', params})
}